//考勤管理

import http from '@/lib/http'


// 获取用户未读消息数量
export function countUserUncheckMessage(params) {
  return http.getRequest(`/message/count`, params)
}

// 获取用户消息
export function getMessageOnUser(params) {
  return http.getRequest(`/message`, params)
}

// 设置消息已读
export function checkMessageApi(params) {
  return http.getRequest(`/message/check/single`, params)
}

// 将用户信息设置为已读
export function checkMessageOnUser(params) {
  return http.getRequest(`/message/check`, params)
}

// 获取消息主题列表
export function getMessageTopicList(params) {
  return http.getRequest(`/message/topic`, params)
}

// 用户订阅消息
export function setUserSubscription(params) {
  return http.postRequest(`/message/subscribe`, params)
}

// 临时接口 根据dispatchFormId 获取 producingId/workingNumber/noticeNumber
export function getSimpleDateByDispatchForm(params) {
  return http.getRequest(`/product/simple/info`, params)
}
